package com.example.cdctestsystem.pojo;

import java.io.Serializable;
import java.util.Date;

public class WrongTopic implements Serializable {
    private Integer id;

    /**
	* 问题id
	*/
    private Question question;

    /**
	* 错题时间
	*/
    private Date wrongTime;

    /**
	* 哪个用户错的
	*/
    private UserInfo userInfo;

    /**
	* 1为使用，0为删除
	*/
    private Boolean enable;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Date getWrongTime() {
        return wrongTime;
    }

    public void setWrongTime(Date wrongTime) {
        this.wrongTime = wrongTime;
    }

    public Boolean getEnable() {
        return enable;
    }

    public void setEnable(Boolean enable) {
        this.enable = enable;
    }

    public Question getQuestion() {
        return question;
    }

    public void setQuestion(Question question) {
        this.question = question;
    }

    public UserInfo getUserInfo() {
        return userInfo;
    }

    public void setUserInfo(UserInfo userInfo) {
        this.userInfo = userInfo;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", questionId=").append(question);
        sb.append(", wrongTime=").append(wrongTime);
        sb.append(", userInfoId=").append(userInfo);
        sb.append(", enable=").append(enable);
        sb.append("]");
        return sb.toString();
    }
}